package bhoost.shell;
 
public abstract class Event {
  public int eventCode;
  public Type eventType;
  public boolean hasEvent;
    
  enum Type {
    activity, key, geoLocation, camera, browserHistory, xmpp, notification, network
  }
  

  public Event() {}
  
  public int getEventCode() {
    return eventCode;
  }
  
  public abstract void copyFrom(Event event);
  
  public String getEventType() {
    if (eventType != null)
      return eventType.toString();
    return null;
  }
  
  public Type getType() {
    if (eventType != null)
      return eventType;
    return null;
  }
}